package com.At;

import org.apache.log4j.Logger;

import util.Pasing;

import java.io.IOException;
import java.util.*;

import javax.servlet.http.HttpSession;

import com.Sv.bbsSv;

public class bbsAction extends SetupAt {

	
	private static Logger Log = Logger.getLogger(bbsAction.class);
	public static bbsSv bsv = bbsSv.getInstance();
	


	
	
public String bbs1() throws IOException{
	
		HttpSession session = req.getSession();
		Map<String,Object> param =  getParameterNameAndValueMap();
		Map<String,Object> result = new HashMap<String,Object>();
		
		
		if(param.get("cnt") !=null ){

			param.put("name",session.getAttribute("name"));
			result = bsv.bbsInsert(param);
		}
		
	
		 result = bsv.bbsList(param);
		  
		  
	
		 req.setAttribute("result", result);
	
	
	
	
	return SUCCESS;
}



}
